import request from '@/utils/request'

// 查询业务数据列表
export function listLottery(query) {
  return request({
    url: '/system/lottery/list',
    method: 'get',
    params: query
  })
}

// 查询业务数据详细
export function getLottery(id) {
  return request({
    url: '/system/lottery/' + id,
    method: 'get'
  })
}

// 新增业务数据
export function addLottery(data) {
  return request({
    url: '/system/lottery',
    method: 'post',
    data: data
  })
}

// 修改业务数据
export function updateLottery(data) {
  return request({
    url: '/system/lottery',
    method: 'put',
    data: data
  })
}

// 删除业务数据
export function delLottery(id) {
  return request({
    url: '/system/lottery/' + id,
    method: 'delete'
  })
}
